package indi.zhifa.study2025.class004.imgserv.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.task.VirtualThreadTaskExecutor;

import java.util.concurrent.Executor;

@Configuration
public class AsyncConfig {
    @Bean
    public Executor backendExecutor() {
        return new VirtualThreadTaskExecutor("backend-vte");
    }
}
